package com.zou.mall.auth.feign.fallback;

import com.zou.common.exception.BizCodeEnum;
import com.zou.common.utils.R;
import com.zou.mall.auth.feign.MemberFeignService;
import com.zou.mall.auth.vo.LoginVO;
import com.zou.mall.auth.vo.RegisterVO;
import org.springframework.stereotype.Service;

@Service
public class MemberFallbackServiceFallBack implements MemberFeignService {
    @Override
    public R register(RegisterVO registerVo) {
        return R.error(BizCodeEnum.READ_TIME_OUT_EXCEPTION.getCode(), BizCodeEnum.READ_TIME_OUT_EXCEPTION.getMsg());
    }

    @Override
    public R login(LoginVO loginVo) {
        return R.error(BizCodeEnum.READ_TIME_OUT_EXCEPTION.getCode(), BizCodeEnum.READ_TIME_OUT_EXCEPTION.getMsg());
    }
}
